import { FormController, FormPageController, IFormDetailProvider } from "@ibiz-template/runtime";
import { IDEFormPage } from "@ibiz/model-core";

export class FormPageProvider implements IFormDetailProvider {
  component: string = "IBizFormPageItem";

  async createController(
    detailModel: IDEFormPage,
    form: FormController,
    _parent: undefined
  ): Promise<FormPageController> {
    const c = new FormPageController(detailModel, form);
    await c.init();
    return c;
  }
}
